package com.sikaryofficial.backend.domain.vo.export;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.sikaryofficial.backend.service.brand.export.ExportIntegerStringConverter;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import static com.sikaryofficial.backend.constant.ProductConstant.CONTENT_ROW_HEIGHT;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ExcelIgnoreUnannotated
@ContentRowHeight(CONTENT_ROW_HEIGHT)
public class ProductExportVO {
    /**
     * 产品ID
     */
    @ExcelIgnore
    private Long brandTasteId;

    /**
     * 序号
     */
    @ColumnWidth(16)
    @ExcelProperty(value = "序号", index = 0)
    private Integer seqNo;

    /**
     * 产品名称_CN
     */
    @ColumnWidth(16)
    @ExcelProperty(value = "产品名称_CN", index = 1)
    private String productNameCn;

    @ColumnWidth(16)
    @ExcelProperty(value = "产品名称_EN", index = 2)
    private String productNameEn;

    @ColumnWidth(13)
    @ExcelProperty(value = "口味_CN", index = 3)
    private String tasteNameCn;

    @ColumnWidth(13)
    @ExcelProperty(value = "口味_EN", index = 4)
    private String tasteNameEn;

    @ColumnWidth(13)
    @ExcelProperty(value = "口味备注", index = 5)
    private String tasteRemark;

    @ColumnWidth(16)
    @ExcelProperty(value = "品牌_CN", index = 6)
    private String brandNoCn;

    @ColumnWidth(16)
    @ExcelProperty(value = "品牌_EN", index = 7)
    private String brandNoEn;

    @ColumnWidth(16)
    @ExcelProperty(value = "产品型号_CN", index = 8)
    private String modelCn;
    @ColumnWidth(16)
    @ExcelProperty(value = "产品型号_EN", index = 9)
    private String modelEn;

    @ColumnWidth(16)
    @ExcelProperty(value = "款式_CN", index = 10)
    private String styleCn;
    @ColumnWidth(16)
    @ExcelProperty(value = "款式_EN", index = 11)
    private String styleEn;

    @ExcelIgnore
    private String qrTitleCn;

    @ExcelIgnore
    private String qrTitleEn;

    @ColumnWidth(16)
    @ExcelProperty(value = "用户可见", index = 12 ,converter = ExportIntegerStringConverter.class)
    private Integer visible;

    @ColumnWidth(16)
    @ExcelProperty(value = "二维码物料号", index = 13)
    private String qrMatlNo;

    @ColumnWidth(40)
    @ExcelProperty(value = "产品介绍_CN", index = 14)
    private String productIntroduceCn;
    @ColumnWidth(40)
    @ExcelProperty(value = "产品介绍_EN", index = 15)
    private String productIntroduceEn;
}
